<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');

$id=$_GET['id'];
$T->readDB("select t.*,r.name as rname from sys_takes_list as t left join sys_equipment_repair as r on t.takes_type=r.id where t.id=".$id);

$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 